<?php
	$user->phone = 'test';

	if(!empty($_POST['tel'])) {
		$user->phone = $_POST['tel'];
		$user->save();
	}

	$auth_token = $cfg->getFacebook()->api_client->auth_createToken();
	$_SESSION['auth_token'] = $auth_token;

	$Smarty->assign('apikey', $cfg->fb_app_key);
	$Smarty->assign('auth_token', $auth_token);
	$Smarty->assign('page', 'preferences.tpl');

?>
